package Day4231;

/**
 * @author: Li fei
 * @date: 2018-04-23
 * @time: 22:07
 */
public abstract class Account {
    private String idCard;
    private double balance;

    public Account() {

    }

    public Account(String idCard, double balance) {
        this.idCard = idCard;
        this.balance = balance;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public abstract double getInterest();

    @Override
    public String toString() {
        return "Account{" +
                "idCard='" + idCard + '\'' +
                ", balance=" + balance +
                '}';
    }
}
